import http from '../common/request.js'

// 获取个人中心数据
export function getUserByOpenId(data) {
  return http({
    url: '/min/program/personal/getUserByOpenId',
    method: 'post',
    data
  })
}

// 个人信息修改
export function updateUserInfo(data) {
  return http({
    url: '/min/program/personal/updateUserInfo',
    method: 'post',
    data
  })
}

// 茶价格录入权限
export function teaPricesPermission(data) {
  return http({
    url: '/min/program/personal/teaPricesPermission',
    method: 'post',
    data
  })
}

// 查询个人中心茶价格列表
export function selectCyTeaPricesList(data) {
  return http({
    url: '/min/program/personal/selectCyTeaPricesList',
    method: 'post',
    data
  })
}

// 新增或保存茶价格
export function saveOrUpdateTeaPrices(data) {
  return http({
    url: '/min/program/personal/saveOrUpdateTeaPrices',
    method: 'post',
    data
  })
}

// 删除茶价格
export function deleteTeaPrices(data) {
  return http({
    url: '/min/program/personal/deleteTeaPrices',
    method: 'post',
    data
  })
}
